<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>留言板</title>
  <link rel="stylesheet" href="index.min.css">
  <script src="jquery-3.4.1.min.js"></script>
  <script src="template-web.js"></script>

  <script id="tem" type="text/html">
    <!-- 模板使用 -->
    <% for ( var i = comments.length - 1; i >= 0; i--){ %>
      <li uid="<%= comments[i].id %>">
        <p class="id">第<%= comments[i].id%>楼</p>
        <p class="delete">删除</p>
        <p class="user"><%= comments[i].name %></p>
        <p class="comment"><%= comments[i].content %></p>
        <p class="up"><span></span><%= comments[i].up %></p>
      </li>
    <% } %>
    
  </script>
  <style>

  </style>
</head>
<body>
  <div class="box">
    <div class="header">
      <h2>留言板</h2>
    </div>
    <div class="enter">
      <div class="userDiv"><p>用户名：</p><input type="text" id="user"></div>
      <div class="commentDiv"><p>评论：</p><textarea name="comment" id="comment" cols="30" rows="10"></textarea></div>
      <div class="btnDiv"><div class="btn"><p>发表</p></div></div>
    </div>

    <div class="content">
      <h4>评论区</h4>
      <ul class="ul">
        
      </ul>
    </div>
  </div>
  <script src="index.min.js"></script>
</body>
</html>